<?php

Raise::load('core.structure.RaiseGridCell');

/**
 * TestCoreRaiseGridCell class
 * Testing unit of 'phpraise/core/structure/RaiseGridCell.php'
 *
 * @author Sam-Mauris Yong / hellclanner at live dot com
 * @license http://www.opensource.org/licenses/bsd-license New BSD License
 * @package Raise.UnitTest.Test
 */
class TestCoreRaiseGridCell extends RaiseTest {

    public static function testClass(){
        self::assertClassExists('RaiseGridCell');
        self::assertClassExtends('RaiseGridCell', 'RaiseObject');
        self::assertClassMethod('RaiseGridCell', array('value', 'row', 'column'));
    }
    
    public static function testObject(){
        $o = new RaiseGridCell(0, 1, 'Testing');
        self::assertStrictEqual($o->value(), 'Testing');
        self::assertStrictEqual($o->row(), 1);
        self::assertStrictEqual($o->column(), 0);
    }

}
